package com.guosifan.repository;

import com.guosifan.entity.User;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface UserRepository {

    List<User> findAll(int index,int limit);

    User findById(int id);

    int count();

    int save(User user);

    void update(User user);

    int deleteById(int id);

}
